﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="/Scripts/JQuery/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="jquery.form.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#Form表单").submit(function () {
                $("#Form表单").ajaxSubmit({
                    dataType: 'json',
                    success: function (data) {
                        alert(data.info);
                    }
                });
                return false;
            });
        });
    </script>
</head>
<body>
    <form id="Form表单" action="/Home/test/"  method="post" >
    <input name="fileName" type="file" />
    <input name="inputName" type="text" />
    <input id="提交按钮" type="submit" />
    </form>
</body>
</html>
